﻿@using YanForum.Engine.ViewModels
@model PostOtions

<div class="row">
    <div class="col-md-12">
        @using (Html.BeginForm("Index", "Post", new { area = "Admin" }, FormMethod.Get, new { @class = "form-horizontal" }))
        {
            <div class="form-group">
                <div class="col-sm-6">
                    <div class="input-group">
                    @Html.TextBoxFor(r => r.Search, new { @class = "form-control", @placeholder = "Từ khóa" })
                    <span class="input-group-btn">
                        <input type="submit" class="btn btn-success" value="Search" />
                    </span>
                </div>
                <!-- /input-group -->
                </div>

                <div class="col-sm-2 col-sm-offset-1">
                    <a href="@Url.Action("Update", "Post", new { area = "Admin" })" class="btn btn-success">Thêm bài viết</a>
                </div>
            </div>
        }
    </div>
</div>
